package com.hetao.lazy;

/**
 * Created by hetao on 2018/3/12.
 */
public class LazyTwo {
    private LazyTwo(){}
    //静态块，公共内存区域
    private static LazyTwo lazy=null;

    public static synchronized LazyTwo getInstance(){
        if(lazy==null){
            lazy=new LazyTwo();
        }
        return lazy;
    }
}
